# -*- coding:utf-8 -*-
#!usr/etc/env python
STEP = [25,10,5,1]
def getMoney():
    result = {}
    money = int(raw_input('Enter a digit > '))
    for t in STEP:
        if money == 0 : break
        if( money >= t ) :
            temp = divmod(money, t)
            result[t] = temp[0]
            money = temp[1]
        else:
            continue
    if money == 0 :
        result['code'] = '00000'
        return result
    else:
        return {'code':'11111'}

print getMoney()
